<?php

?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title><?php echo $template['title'] ?></title>
<link href="../img/index/logo.gif" rel="shortcut icon"/>
<meta name="keywords" content="悠游网后台管理界面" />
<meta name="description" content="悠游网后台管理界面" />
<?php
foreach ($template['css'] as $val){
	echo "<link rel='stylesheet' type='text/css' href='{$val}' />";
}
?>
</head>
<body>
<div id="top">
	<div class="logo">
		<a href="../index.php" target="_blank" class='logo'><img src="../img/index/logo.gif" /></a>
		<a href="javascript:;">管理中心</a>
	</div>
	<ul class="nav">
		<li>
			<a href="../index.php" target="_blank">悠游网</a>
		</li>
	</ul>
	<div class="login_info">
		<a target="_blank" href="../index.php" style="color:#fff;">网站首页</a>&nbsp;|&nbsp;
		管理员：<?php echo $_SESSION['manage']['name']?> <a href="logout.php">[注销]</a>
	</div>
</div>
<div id="sidebar">
	<ul>
		<li>
			<div class="small_title">系统</div>
			<ul class="child">
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='index.php'){echo 'class="current"';}?> href="index.php">系统信息</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='manage.php'){echo 'class="current"';}?> href="manage.php">管理员</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='manage_add.php'){echo 'class="current"';}?> href="manage_add.php">添加管理员</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='web_set.php'){echo 'class="current"';}?> href="web_set.php">站点设置</a></li>
			</ul>
		</li>
		<li><!--  class="current" -->
			<div class="small_title">内容管理</div>
			<ul class="child">
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='scenery.php' || basename($_SERVER['SCRIPT_NAME'])=='scenery_update.php' || basename($_SERVER['SCRIPT_NAME'])=='scenery_add.php'){echo 'class="current"';}?> href="scenery.php">风景名胜</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='hot.php' || basename($_SERVER['SCRIPT_NAME'])=='hot_update.php' || basename($_SERVER['SCRIPT_NAME'])=='hot_add.php'){echo 'class="current"';}?> href="hot.php">热门景点</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='scenic.php' || basename($_SERVER['SCRIPT_NAME'])=='scenic_update.php' || basename($_SERVER['SCRIPT_NAME'])=='scenic_add.php'){echo 'class="current"';}?> href="scenic.php">景点资讯</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='info.php' || basename($_SERVER['SCRIPT_NAME'])=='info_update.php' || basename($_SERVER['SCRIPT_NAME'])=='info_add.php'){echo 'class="current"';}?> href="info.php">旅游信息</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='strategy.php' || basename($_SERVER['SCRIPT_NAME'])=='strategy_update.php' || basename($_SERVER['SCRIPT_NAME'])=='strategy_add.php'){echo 'class="current"';}?> href="strategy.php">旅游攻略</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='leftInfo.php' || basename($_SERVER['SCRIPT_NAME'])=='leftInfo_update.php' || basename($_SERVER['SCRIPT_NAME'])=='leftInfo_add.php'){echo 'class="current"';}?> href="leftInfo.php">侧边栏信息</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='onepage.php' || basename($_SERVER['SCRIPT_NAME'])=='onepage_update.php' || basename($_SERVER['SCRIPT_NAME'])=='onepage_add.php'){echo 'class="current"';}?> href="onepage.php">单页信息</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='link.php' || basename($_SERVER['SCRIPT_NAME'])=='link_update.php' || basename($_SERVER['SCRIPT_NAME'])=='link_add.php'){echo 'class="current"';}?> href="link.php">友情链接</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='data.php' || basename($_SERVER['SCRIPT_NAME'])=='data_update.php' || basename($_SERVER['SCRIPT_NAME'])=='data_add.php'){echo 'class="current"';}?> href="data.php">数据调用中心</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='comment.php'|| basename($_SERVER['SCRIPT_NAME'])=='comment_update.php' || basename($_SERVER['SCRIPT_NAME'])=='comment_add.php'){echo 'class="current"';}?> href="comment.php">用户评论</a></li>
				<li><a <?php if(basename($_SERVER['SCRIPT_NAME'])=='feedback.php'|| basename($_SERVER['SCRIPT_NAME'])=='feedback_update.php' || basename($_SERVER['SCRIPT_NAME'])=='feedback_add.php'){echo 'class="current"';}?> href="feedback.php">用户留言</a></li>
			</ul>
		</li>
		<li>
			<div class="small_title">用户管理</div>
			<ul class="child">
				<li><a href="user_List.php" <?php if(basename($_SERVER['SCRIPT_NAME'])=='user_List.php' || basename($_SERVER['SCRIPT_NAME'])=='user_update.php'){echo 'class="current"';}?>>用户列表</a></li>
				<li><a href="user_add.php" <?php if(basename($_SERVER['SCRIPT_NAME'])=='user_add.php'){echo 'class="current"';}?>>添加用户</a></li>
			</ul>
		</li>
	</ul>
</div>
